'use strict';
module.exports = {
	/**
	 * XXXnameXXX
	 * @url client/pages/product/kh/get_product_info 前端调用的url参数地址
	 * data 请求参数
	 * @param {String} params1  参数1
	 */
	main: async (event) => {
		let {
			data = {}, userInfo, util, filterResponse, originalParam
		} = event;
		let {
			customUtil,
			uniID,
			config,
			pubFun,
			vk,
			db,
			_
		} = util;
		let {
			uid,
			product_id_list
		} = data;
		let res = {
			code: 0,
			msg: ""
		};
		// 业务逻辑开始-----------------------------------------------------------
		console.log('product_id_list', product_id_list)
		res.data = await vk.baseDao.select({
			getMain:true,
			pageSize:-1,
			dbName: "daoju_merchandise",
			whereJson: {
				status:1,
				_id: _.in(product_id_list)
			}
		});

		// 业务逻辑结束-----------------------------------------------------------
		return res;
	}
}